  **********************************************
  *** Get Varieties of Parties partyid codes ***
  **********************************************
replace v2paid = 	840	if pid2==	817	& year==	2018
replace v2paid = 	.	if pid2==	819	& year==	2018
replace v2paid = 	190	if pid2==	801	& year==	2018
replace v2paid = 	.	if pid2==	814	& year==	2018
replace v2paid = 	.	if pid2==	821	& year==	2018
replace v2paid = 	.	if pid2==	822	& year==	2018
replace v2paid = 	3270	if pid2==	811	& year==	2018
replace v2paid = 	.	if pid2==	808	& year==	2018
replace v2paid = 	.	if pid2==	809	& year==	2018
replace v2paid = 	1558	if pid2==	810	& year==	2018
replace v2paid = 	819	if pid2==	806	& year==	2018
replace v2paid = 	838	if pid2==	813	& year==	2018
replace v2paid = 	2297	if pid2==	803	& year==	2018
replace v2paid = 	1729	if pid2==	802	& year==	2018
replace v2paid = 	1636	if pid2==	804	& year==	2018
replace v2paid = 	.	if pid2==	820	& year==	2018
replace v2paid = 	463	if pid2==	4003	& year==	2018
replace v2paid = 	1329	if pid2==	4002	& year==	2018
replace v2paid = 	.	if pid2==	4006	& year==	2018
replace v2paid = 	1384	if pid2==	4001	& year==	2018
replace v2paid = 	1659	if pid2==	4004	& year==	2018
replace v2paid = 	1970	if pid2==	4005	& year==	2018
replace v2paid = 	.	if pid2==	7001	& year==	2019
replace v2paid = 	1760	if pid2==	7004	& year==	2019
replace v2paid = 	93530	if pid2==	7004	& year==	2019  /* HDZ coalition/Croatian Democratic Union */
replace v2paid = 	3168	if pid2==	7003	& year==	2019
replace v2paid = 	.	if pid2==	7006	& year==	2019
replace v2paid = 	.	if pid2==	7005	& year==	2019
replace v2paid = 	4717	if pid2==	7002	& year==	2019
replace v2paid = 	3170	if pid2==	7016	& year==	2019
replace v2paid = 	.	if pid2==	7019	& year==	2019
replace v2paid = 	.	if pid2==	7011	& year==	2019
replace v2paid = 	.	if pid2==	7009	& year==	2019
replace v2paid = 	1454	if pid2==	7017	& year==	2019
replace v2paid = 	1673	if pid2==	7010	& year==	2019
replace v2paid = 	.	if pid2==	7008	& year==	2019
replace v2paid = 	1166	if pid2==	7015	& year==	2019
replace v2paid = 	537	if pid2==	7014	& year==	2019 /* Social Democratic party */
replace v2paid = 	2522	if pid2==	7014	& year==	2019  /* Kukuriku/Restart/Kukuriku Coalition/KK */
replace v2paid = 	292	if pid2==	7012	& year==	2019
replace v2paid = 	3171	if pid2==	7013	& year==	2019
replace v2paid = 	.	if pid2==	10012	& year==	2017
replace v2paid = 	.	if pid2==	10009	& year==	2017
replace v2paid = 	.	if pid2==	10004	& year==	2017
replace v2paid = 	757	if pid2==	10002	& year==	2017  /* Bulgarian Socialist party */
replace v2paid = 	1665	if pid2==	10002	& year==	2017  /*  BSP for Bulgaria/Coalition for Bulgaria/Democratic Left/KzB/BSP */

replace v2paid = 	760	if pid2==	10001	& year==	2017
replace v2paid = 	1195	if pid2==	10006	& year==	2017
replace v2paid = 	.	if pid2==	10011	& year==	2017
replace v2paid = 	.	if pid2==	10010	& year==	2017
replace v2paid = 	982	if pid2==	10003	& year==	2017
replace v2paid = 	2057	if pid2==	10015	& year==	2017
replace v2paid = 	.	if pid2==	10013	& year==	2017
replace v2paid = 	.	if pid2==	10008	& year==	2017
replace v2paid = 	482	if pid2==	10005	& year==	2017
replace v2paid = 	2056	if pid2==	10007	& year==	2017  /* Bulgarian National Movement  */
replace v2paid = 	2057	if pid2==	10007	& year==	2017  /* VMRO/IMROBulgarian National Movement:in OP/Patriotic Union coalition led by NFSB*/
replace v2paid = 	.	if pid2==	10014	& year==	2017
replace v2paid = 	.	if pid2==	19101	& year==	2017
replace v2paid = 	4865	if pid2==	19113	& year==	2017
replace v2paid = 	.	if pid2==	19108	& year==	2017
replace v2paid = 	1431	if pid2==	19102	& year==	2017
replace v2paid = 	93530	if pid2==	19102	& year==	2017  /* HDZ coalition/Croatian Democratic Union  */
replace v2paid = 	2062	if pid2==	19107	& year==	2017
replace v2paid = 	.	if pid2==	19106	& year==	2017
replace v2paid = 	72	if pid2==	19104	& year==	2017
replace v2paid = 	799	if pid2==	19103	& year==	2017
replace v2paid = 	214	if pid2==	19105	& year==	2017
replace v2paid = 	.	if pid2==	19111	& year==	2017
replace v2paid = 	7898	if pid2==	19115	& year==	2017
replace v2paid = 	93531	if pid2==	19115	& year==	2017 /* The Key/Human Shield/The Only Option coalition */
replace v2paid = 	.	if pid2==	19112	& year==	2017
replace v2paid = 	513	if pid2==	19109	& year==	2017
replace v2paid = 	.	if pid2==	19110	& year==	2017
replace v2paid = 	1475	if pid2==	19114	& year==	2017
replace v2paid = 	2522	if pid2==	19114	& year==	2017  /* Restart Coalition/Kukuriku Coalition/KK/ HR: Social democratic party of Croatia/People's Coalition */
replace v2paid = 	2141	if pid2==	20301	& year==	2017
replace v2paid = 	177	if pid2==	20302	& year==	2017
replace v2paid = 	.	if pid2==	20315	& year==	2017
replace v2paid = 	676	if pid2==	20305	& year==	2017
replace v2paid = 	1728	if pid2==	20303	& year==	2017
replace v2paid = 	466	if pid2==	20304	& year==	2017
replace v2paid = 	2047	if pid2==	20307	& year==	2017
replace v2paid = 	.	if pid2==	20314	& year==	2017
replace v2paid = 	6125	if pid2==	20308	& year==	2017
replace v2paid = 	.	if pid2==	20313	& year==	2017
replace v2paid = 	1707	if pid2==	20310	& year==	2017
replace v2paid = 	.	if pid2==	20312	& year==	2017
replace v2paid = 	1554	if pid2==	20309	& year==	2017
replace v2paid = 	223	if pid2==	20306	& year==	2017
replace v2paid = 	2049	if pid2==	20311	& year==	2017
replace v2paid = 	536	if pid2==	20803	& year==	2017
replace v2paid = 	1022	if pid2==	20805	& year==	2017
replace v2paid = 	1507	if pid2==	20802	& year==	2017
replace v2paid = 	212	if pid2==	20808	& year==	2017
replace v2paid = 	1527	if pid2==	20809	& year==	2017
replace v2paid = 	329	if pid2==	20804	& year==	2017
replace v2paid = 	.	if pid2==	20810	& year==	2017
replace v2paid = 	.	if pid2==	20806	& year==	2017
replace v2paid = 	379	if pid2==	20801	& year==	2017
replace v2paid = 	1204	if pid2==	20807	& year==	2017  /*Venestre */
replace v2paid = 	533	if pid2==	23301	& year==	2018
replace v2paid = 	110	if pid2==	23306	& year==	2018  /* EKRE */
replace v2paid = 	3271	if pid2==	23307	& year==	2018
replace v2paid = 	1040	if pid2==	23305	& year==	2018
replace v2paid = 	821	if pid2==	23302	& year==	2018
replace v2paid = 	1150	if pid2==	23303	& year==	2018
replace v2paid = 	685	if pid2==	23304	& year==	2018
replace v2paid = 	901	if pid2==	24601	& year==	2017
replace v2paid = 	.	if pid2==	24606	& year==	2017
replace v2paid = 	7547	if pid2==	24608	& year==	2017
replace v2paid = 	479	if pid2==	24605	& year==	2017
replace v2paid = 	7548	if pid2==	24604	& year==	2017
replace v2paid = 	495	if pid2==	24602	& year==	2017
replace v2paid = 	1303	if pid2==	24603	& year==	2017
replace v2paid = 	.	if pid2==	24607	& year==	2017
replace v2paid = 	.	if pid2==	25011	& year==	2018
replace v2paid = 	1251	if pid2==	25003	& year==	2018
replace v2paid = 	213	if pid2==	25009	& year==	2018  /* UDF */
replace v2paid = 	1108	if pid2==	25006	& year==	2018
replace v2paid = 	.	if pid2==	25013	& year==	2018
replace v2paid = 	.	if pid2==	25001	& year==	2018
replace v2paid = 	433	if pid2==	25014	& year==	2018
replace v2paid = 	.	if pid2==	25007	& year==	2018
replace v2paid = 	.	if pid2==	25005	& year==	2018
replace v2paid = 	.	if pid2==	25015	& year==	2018
replace v2paid = 	1478	if pid2==	25004	& year==	2018
replace v2paid = 	5857	if pid2==	25008	& year==	2018
replace v2paid = 	5857	if pid2==	25012	& year==	2018  /* Union for the Popular Movement/Right coalition/Republicans/UDF */
replace v2paid = 	.	if pid2==	25010	& year==	2018
replace v2paid = 	5858	if pid2==	25002	& year==	2018  /* Unsubmissive/Unbowed/FI */
replace v2paid = 	6114	if pid2==	26807	& year==	2018
replace v2paid = 	.	if pid2==	26815	& year==	2018
replace v2paid = 	.	if pid2==	26808	& year==	2018
replace v2paid = 	.	if pid2==	26809	& year==	2018
replace v2paid = 	2988	if pid2==	26810	& year==	2018
replace v2paid = 	2153	if pid2==	26802	& year==	2018
replace v2paid = 	.	if pid2==	26805	& year==	2018
replace v2paid = 	7091	if pid2==	26811	& year==	2018
replace v2paid = 	.	if pid2==	26814	& year==	2018
replace v2paid = 	.	if pid2==	26813	& year==	2018
replace v2paid = 	2162	if pid2==	26803	& year==	2018
replace v2paid = 	.	if pid2==	26804	& year==	2018
replace v2paid = 	.	if pid2==	26812	& year==	2018
replace v2paid = 	.	if pid2==	26806	& year==	2018
replace v2paid = 	2172	if pid2==	26801	& year==	2018
replace v2paid = 	1976	if pid2==	27606	& year==	2017
replace v2paid = 	211	if pid2==	27601	& year==	2017
replace v2paid = 	1375	if pid2==	27601	& year==	2017 /* CDU */
replace v2paid = 	.	if pid2==	27603	& year==	2017
replace v2paid = 	573	if pid2==	27603	& year==	2017  /* FDP/Free Democratic Party/German Liberal Party */
replace v2paid = 	383	if pid2==	27602	& year==	2017
replace v2paid = 	1816	if pid2==	27604	& year==	2017
replace v2paid = 	1545	if pid2==	27605	& year==	2017
replace v2paid = 	1412	if pid2==	34803	& year==	2018
replace v2paid = 	469	if pid2==	34806	& year==	2018
replace v2paid = 	.	if pid2==	34808	& year==	2018
replace v2paid = 	1691	if pid2==	34802	& year==	2018
replace v2paid = 	.	if pid2==	34810	& year==	2018
replace v2paid = 	1408	if pid2==	34801	& year==	2018
replace v2paid = 	.	if pid2==	34811	& year==	2018
replace v2paid = 	.	if pid2==	34812	& year==	2018
replace v2paid = 	.	if pid2==	34809	& year==	2018
replace v2paid = 	42	if pid2==	34804	& year==	2018
replace v2paid = 	1650	if pid2==	34805	& year==	2018
replace v2paid = 	2458	if pid2==	34807	& year==	2018
replace v2paid = 	2517	if pid2==	35205	& year==	2017
replace v2paid = 	7565	if pid2==	35216	& year==	2017
replace v2paid = 	.	if pid2==	35208	& year==	2017
replace v2paid = 	2048	if pid2==	35206	& year==	2017
replace v2paid = 	5454	if pid2==	35207	& year==	2017
replace v2paid = 	.	if pid2==	35212	& year==	2017
replace v2paid = 	.	if pid2==	35210	& year==	2017
replace v2paid = 	363	if pid2==	35201	& year==	2017
replace v2paid = 	457	if pid2==	35204	& year==	2017
replace v2paid = 	.	if pid2==	35209	& year==	2017
replace v2paid = 	5852	if pid2==	35211	& year==	2017
replace v2paid = 	964	if pid2==	35202	& year==	2017
replace v2paid = 	1396	if pid2==	35203	& year==	2017
replace v2paid = 	2280	if pid2==	38014	& year==	2018
replace v2paid = 	.	if pid2==	38015	& year==	2018
replace v2paid = 	.	if pid2==	38001	& year==	2018
replace v2paid = 	802	if pid2==	38005	& year==	2018
replace v2paid = 	2046	if pid2==	38009	& year==	2018
replace v2paid = 	.	if pid2==	38003	& year==	2018
replace v2paid = 	1626	if pid2==	38012	& year==	2018
replace v2paid = 	8058	if pid2==	38012	& year==	2018  /* Forward Italy (2013) */
replace v2paid = 	.	if pid2==	38004	& year==	2018
replace v2paid = 	.	if pid2==	38016	& year==	2018
replace v2paid = 	1221	if pid2==	38013	& year==	2018  /* North League/ LN/ Northern League/ The League */
replace v2paid = 	.	if pid2==	38006	& year==	2018
replace v2paid = 	.	if pid2==	38007	& year==	2018
replace v2paid = 	.	if pid2==	38002	& year==	2018
replace v2paid = 	.	if pid2==	38008	& year==	2018
replace v2paid = 	.	if pid2==	38011	& year==	2018
replace v2paid = 	.	if pid2==	38010	& year==	2018
replace v2paid = 	556	if pid2==	44004	& year==	2018 /* LT: Electoral Action of Poles – Christian Families Aliance */
replace v2paid = 	193	if pid2==	44010	& year==	2018
replace v2paid = 	102	if pid2==	44001	& year==	2018
replace v2paid = 	1744	if pid2==	44005	& year==	2018  /* Liberals' Movement of the Republic of Lithuania */
replace v2paid = 	.	if pid2==	44002	& year==	2018
replace v2paid = 	.	if pid2==	44007	& year==	2018
replace v2paid = 	1490	if pid2==	44007	& year==	2018  /* Lithuanian Peasant [Popular/Greens] Union/LVLS/Lithuanian Farmers and Greens Union*/
replace v2paid = 	.	if pid2==	44003	& year==	2018
replace v2paid = 	.	if pid2==	44011	& year==	2018
replace v2paid = 	64	if pid2==	44006	& year==	2018
replace v2paid = 	237	if pid2==	44008	& year==	2018  /* Order and Justice – Liberal Democratic Party */
replace v2paid = 	.	if pid2==	44009	& year==	2018
replace v2paid = 	.	if pid2==	80709	& year==	2019
replace v2paid = 	.	if pid2==	80702	& year==	2019
replace v2paid = 	4544	if pid2==	80704	& year==	2019
replace v2paid = 	431	if pid2==	80705	& year==	2019
replace v2paid = 	.	if pid2==	80707	& year==	2019
replace v2paid = 	1220	if pid2==	80708	& year==	2019
replace v2paid = 	1674	if pid2==	80701	& year==	2019
replace v2paid = 	171	if pid2==	80710	& year==	2019
replace v2paid = 	.	if pid2==	80719	& year==	2019
replace v2paid = 	5585	if pid2==	80703	& year==	2019
replace v2paid = 	2447	if pid2==	80711	& year==	2019
replace v2paid = 	.	if pid2==	80712	& year==	2019
replace v2paid = 	4545	if pid2==	80713	& year==	2019
replace v2paid = 	.	if pid2==	80714	& year==	2019
replace v2paid = 	.	if pid2==	80715	& year==	2019
replace v2paid = 	93554	if pid2==	80716	& year==	2019  /* alliance: Social Democratic Union coalition */
replace v2paid = 	.	if pid2==	80718	& year==	2019
replace v2paid = 	.	if pid2==	80717	& year==	2019
replace v2paid = 	.	if pid2==	49916	& year==	2019
replace v2paid = 	3255	if pid2==	49913	& year==	2019
replace v2paid = 	3253	if pid2==	49918	& year==	2019
replace v2paid = 	6087	if pid2==	49905	& year==	2019
replace v2paid = 	5469	if pid2==	49910	& year==	2019
replace v2paid = 	3162	if pid2==	49901	& year==	2019
replace v2paid = 	.	if pid2==	49915	& year==	2019
replace v2paid = 	.	if pid2==	49908	& year==	2019
replace v2paid = 	.	if pid2==	49917	& year==	2019
replace v2paid = 	4768	if pid2==	49907	& year==	2019
replace v2paid = 	.	if pid2==	49912	& year==	2019
replace v2paid = 	4767	if pid2==	49906	& year==	2019
replace v2paid = 	3185	if pid2==	49902	& year==	2019
replace v2paid = 	.	if pid2==	49903	& year==	2019
replace v2paid = 	3104	if pid2==	49904	& year==	2019
replace v2paid = 	.	if pid2==	49919	& year==	2019
replace v2paid = 	.	if pid2==	49909	& year==	2019
replace v2paid = 	5468	if pid2==	49911	& year==	2019
replace v2paid = 	.	if pid2==	52810	& year==	2017
replace v2paid = 	1157	if pid2==	52803	& year==	2017
replace v2paid = 	.	if pid2==	52808	& year==	2017
replace v2paid = 	45	if pid2==	52804	& year==	2017
replace v2paid = 	.	if pid2==	52812	& year==	2017
replace v2paid = 	.	if pid2==	52813	& year==	2017
replace v2paid = 	1537	if pid2==	52805	& year==	2017
replace v2paid = 	1234	if pid2==	52807	& year==	2017
replace v2paid = 	298	if pid2==	52802	& year==	2017
replace v2paid = 	.	if pid2==	52809	& year==	2017
replace v2paid = 	828	if pid2==	52801	& year==	2017
replace v2paid = 	.	if pid2==	52811	& year==	2017
replace v2paid = 	1363	if pid2==	52806	& year==	2017
replace v2paid = 	1072	if pid2==	57811	& year==	2018
replace v2paid = 	705	if pid2==	57805	& year==	2018
replace v2paid = 	.	if pid2==	57806	& year==	2018
replace v2paid = 	503	if pid2==	57804	& year==	2018
replace v2paid = 	.	if pid2==	57802	& year==	2018
replace v2paid = 	.	if pid2==	57807	& year==	2018
replace v2paid = 	448	if pid2==	57801	& year==	2018
replace v2paid = 	1173	if pid2==	57813	& year==	2018
replace v2paid = 	.	if pid2==	57809	& year==	2018
replace v2paid = 	101	if pid2==	57803	& year==	2018
replace v2paid = 	.	if pid2==	57810	& year==	2018
replace v2paid = 	719	if pid2==	57812	& year==	2018
replace v2paid = 	.	if pid2==	57808	& year==	2018
replace v2paid = 	1117	if pid2==	61602	& year==	2017
replace v2paid = 	57	if pid2==	61606	& year==	2017
replace v2paid = 	4631	if pid2==	61603	& year==	2017
replace v2paid = 	1565	if pid2==	61601	& year==	2017
replace v2paid = 	.	if pid2==	61607	& year==	2017
replace v2paid = 	4630	if pid2==	61604	& year==	2017
replace v2paid = 	602	if pid2==	61605	& year==	2017
replace v2paid = 	.	if pid2==	61608	& year==	2017
replace v2paid = 	.	if pid2==	62020	& year==	2020
replace v2paid = 	.	if pid2==	62001	& year==	2020
replace v2paid = 	.	if pid2==	62005	& year==	2020
replace v2paid = 	.	if pid2==	62023	& year==	2020
replace v2paid = 	.	if pid2==	62011	& year==	2020
replace v2paid = 	.	if pid2==	62004	& year==	2020
replace v2paid = 	1310	if pid2==	62002	& year==	2020
replace v2paid = 	.	if pid2==	62013	& year==	2020
replace v2paid = 	.	if pid2==	62008	& year==	2020
replace v2paid = 	.	if pid2==	62003	& year==	2020
replace v2paid = 	1359	if pid2==	62010	& year==	2020
replace v2paid = 	1359	if pid2==	62009	& year==	2020 /* Popular Democratic Party / Social Democratic Party */
replace v2paid = 	655	if pid2==	62007	& year==	2020
replace v2paid = 	5662	if pid2==	64206	& year==	2018
replace v2paid = 	5969	if pid2==	64203	& year==	2018
replace v2paid = 	1105	if pid2==	64204	& year==	2018
replace v2paid = 	1305	if pid2==	64205	& year==	2018
replace v2paid = 	481	if pid2==	64202	& year==	2018
replace v2paid = 	3210	if pid2==	64207	& year==	2018
replace v2paid = 	120	if pid2==	64201	& year==	2018
replace v2paid = 	.	if pid2==	68815	& year==	2018
replace v2paid = 	2189	if pid2==	68802	& year==	2018
replace v2paid = 	93596	if pid2==	68802	& year==	2018  /* For a Just Serbia Alliance led by DS */
replace v2paid = 	2190	if pid2==	68805	& year==	2018
replace v2paid = 	93597	if pid2==	68811	& year==	2018
replace v2paid = 	.	if pid2==	68812	& year==	2018
replace v2paid = 	4769	if pid2==	68816	& year==	2018
replace v2paid = 	2196	if pid2==	68809	& year==	2018
replace v2paid = 	.	if pid2==	68803	& year==	2018
replace v2paid = 	.	if pid2==	68819	& year==	2018
replace v2paid = 	2179	if pid2==	68813	& year==	2018
replace v2paid = 	.	if pid2==	68804	& year==	2018
replace v2paid = 	.	if pid2==	68818	& year==	2018
*replace v2paid = 	3177	if pid2==	68801	& year==	2018
replace v2paid = 	93594	if pid2==	68801	& (year==	2016 | year==2017 | year==2018)  /* Serbia is winning in 2016 election */
*replace v2paid = 	93592	if pid2==	68801	& year==	2018  /* alliance: Aleksandar Vucic - The future in which we believe from 2014 election */
replace v2paid = 	2175	if pid2==	68806	& year==	2018
replace v2paid = 	5357	if pid2==	68807	& year==	2018
replace v2paid = 	4771	if pid2==	68820	& year==	2018
replace v2paid = 	2178	if pid2==	68810	& year==	2018
replace v2paid = 	6625	if pid2==	68814	& year==	2018
replace v2paid = 	63	if pid2==	70303	& year==	2017
replace v2paid = 	.	if pid2==	70301	& year==	2017
replace v2paid = 	311	if pid2==	70310	& year==	2017
replace v2paid = 	1386	if pid2==	70307	& year==	2017
replace v2paid = 	656	if pid2==	70302	& year==	2017
replace v2paid = 	258	if pid2==	70304	& year==	2017
replace v2paid = 	4872	if pid2==	70306	& year==	2017
replace v2paid = 	2130	if pid2==	70305	& year==	2017
replace v2paid = 	.	if pid2==	70312	& year==	2017
replace v2paid = 	730	if pid2==	70308	& year==	2017
replace v2paid = 	349	if pid2==	70311	& year==	2017
replace v2paid = 	4873	if pid2==	70309	& year==	2017
replace v2paid = 	467	if pid2==	70503	& year==	2017
replace v2paid = 	1618	if pid2==	70506	& year==	2017
replace v2paid = 	.	if pid2==	70509	& year==	2017
replace v2paid = 	1403	if pid2==	70504	& year==	2017
replace v2paid = 	472	if pid2==	70502	& year==	2017
replace v2paid = 	764	if pid2==	70508	& year==	2017
replace v2paid = 	3098	if pid2==	70501	& year==	2017
replace v2paid = 	96	if pid2==	70510	& year==	2017
replace v2paid = 	3114	if pid2==	70507	& year==	2017
replace v2paid = 	4714	if pid2==	70505	& year==	2017
replace v2paid = 	.	if pid2==	72420	& year==	2017
replace v2paid = 	.	if pid2==	72421	& year==	2017
replace v2paid = 	.	if pid2==	72413	& year==	2017
replace v2paid = 	.	if pid2==	72412	& year==	2017
replace v2paid = 	.	if pid2==	72410	& year==	2017
replace v2paid = 	3217	if pid2==	72409	& year==	2017
replace v2paid = 	8032	if pid2==	72408	& year==	2017
replace v2paid = 	.	if pid2==	72418	& year==	2017
replace v2paid = 	.	if pid2==	72407	& year==	2017
replace v2paid = 	.	if pid2==	72404	& year==	2017
replace v2paid = 	441	if pid2==	72402	& year==	2017  /* AP / PP */
replace v2paid = 	848	if pid2==	72411	& year==	2017
replace v2paid = 	1338	if pid2==	72401	& year==	2017
replace v2paid = 	.	if pid2==	72403	& year==	2017
replace v2paid = 	7656	if pid2==	72405	& year==	2017
replace v2paid = 	3203	if pid2==	72405	& year==	2017 /* Podemos */
replace v2paid = 	7656	if pid2==	72406	& year==	2017
replace v2paid = 	.	if pid2==	72415	& year==	2017
replace v2paid = 	199	if pid2==	75204	& year==	2017 /* Farmers' League / Centre Party */
replace v2paid = 	651	if pid2==	75208	& year==	2017 
replace v2paid = 	456	if pid2==	75207	& year==	2017
replace v2paid = 	.	if pid2==	75206	& year==	2017
replace v2paid = 	1274	if pid2==	75205	& year==	2017
replace v2paid = 	690	if pid2==	75202	& year==	2017
replace v2paid = 	487	if pid2==	75201	& year==	2017
replace v2paid = 	409	if pid2==	75203	& year==	2017
replace v2paid = 	1808	if pid2==	75602	& year==	2017
replace v2paid = 	1415	if pid2==	75605	& year==	2017
replace v2paid = 	.	if pid2==	75612	& year==	2017
replace v2paid = 	.	if pid2==	75611	& year==	2017
replace v2paid = 	1759	if pid2==	75609	& year==	2017
replace v2paid = 	1006	if pid2==	75608	& year==	2017
replace v2paid = 	.	if pid2==	75606	& year==	2017
replace v2paid = 	.	if pid2==	75610	& year==	2017
replace v2paid = 	29	if pid2==	75603	& year==	2017
replace v2paid = 	.	if pid2==	75607	& year==	2017
replace v2paid = 	308	if pid2==	75604	& year==	2017
replace v2paid = 	.	if pid2==	75614	& year==	2017
replace v2paid = 	.	if pid2==	75601	& year==	2017
replace v2paid = 	360	if pid2==	75601	& year==	2017  /* FDP FDP.The Liberals -- Liberal.Radicals */
replace v2paid = 	.	if pid2==	75613	& year==	2017
replace v2paid = 	.	if pid2==	82605	& year==	2018
replace v2paid = 	986	if pid2==	82604	& year==	2018
replace v2paid = 	.	if pid2==	82608	& year==	2018
replace v2paid = 	1567	if pid2==	82601	& year==	2018
replace v2paid = 	.	if pid2==	82606	& year==	2018
replace v2paid = 	1516	if pid2==	82602	& year==	2018
replace v2paid = 	1388	if pid2==	82603	& year==	2018
replace v2paid = 	601	if pid2==	82607	& year==	2018

replace v2paid = . if pid2==-1 | pid2==-3 | pid2==-2
***********************************************************************
